﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LocationBasedClient
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            try
            {

                Communication.CommunicationLayer myComm = new LocationBasedClient.Communication.CommunicationLayer();
                label1.Text = myComm.GetText();
                notification1.Visible = true;
            }
            catch (Exception ex)
            {
                label1.Text = "Fock";                
            }
        }

        private void label1_ParentChanged(object sender, EventArgs e)
        {

        }

        private void notification1_ResponseSubmitted(object sender, Microsoft.WindowsCE.Forms.ResponseSubmittedEventArgs e)
        {
            this.Activate();
        }
    }
}